home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / ratfor.z / ratfor
Text File  |  1998-10-30  |  2KB  |  133 lines

  1.  
  2.  
  3.  
  4. RRRRAAAATTTTFFFFOOOORRRR((((1111))))                                                            RRRRAAAATTTTFFFFOOOORRRR((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      ratfor - rational FORTRAN dialect
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      rrrraaaattttffffoooorrrr [ option ... ] [ filename ... ]
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      _R_a_t_f_o_r converts a rational dialect of FORTRAN into ordinary irrational
  16.      FORTRAN.  _R_a_t_f_o_r provides control flow constructs essentially identical
  17.      to those in C:
  18.  
  19.      statement grouping:
  20.           { statement; statement; statement }
  21.  
  22.      decision-making:
  23.           if (condition) statement [ else statement ]
  24.           switch (integer value) {
  25.                case integer:  statement
  26.                ...
  27.                [ default: ]   statement
  28.           }
  29.  
  30.      loops:
  31.           while (condition) statement
  32.           for (expression; condition; expression) statement
  33.           do limits statement
  34.           repeat statement [ until (condition) ]
  35.           break
  36.           next
  37.  
  38.      and some syntactic sugar to make programs easier to read and write:
  39.  
  40.      free form input:
  41.           multiple statements/line; automatic continuation
  42.  
  43.      comments:
  44.           # this is a comment
  45.  
  46.      translation of relationals:
  47.           >, >=, etc., become .GT., .GE., etc.
  48.  
  49.      return (expression)
  50.           returns expression to caller from function
  51.  
  52.      define:
  53.           define name replacement
  54.  
  55.      include:
  56.           include filename
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. RRRRAAAATTTTFFFFOOOORRRR((((1111))))                                                            RRRRAAAATTTTFFFFOOOORRRR((((1111))))
  71.  
  72.  
  73.  
  74.      _R_a_t_f_o_r is best used with _f_7_7(1).
  75.  
  76. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  77.      f77(1)
  78.      B. W. Kernighan and P. J. Plauger, _S_o_f_t_w_a_r_e _T_o_o_l_s, Addison-Wesley, 1976.
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.